﻿
namespace SqlFormat.Rtf {
    public class PartialRtfSqlFormatter : SqlFormatter<PartialRtfSqlFormatterOptions> {
        public PartialRtfSqlFormatter(PartialRtfSqlFormatterOptions sqlFormatterOptions)
            : base(sqlFormatterOptions) {
        }

        protected override string BeforeString {
            get { return string.Format("\\cf{0} ", Options.StringColorIndex); }
        }

        protected override string AfterString {
            get { return "\\cf0 "; }
        }

        protected override string BeforeKeyWordString {
            get { return string.Format("\\cf{0} ", Options.KeyWordColorIndex); }
        }

        protected override string AfterKeyWordString {
            get { return "\\cf0 "; }
        }

        protected override string NewLineString {
            get { return string.Format("\\par\n\\li{0} ", Indent * 180); }
        }
    }
}